package com.baosight.risk.service.riwa.entity;

import com.baosight.risk.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.*;

import lombok.Data;

/**
 * Table: T_RIWA_RISK_WARING_RULE
 * 重点风险预警模型==预警规则
 */
@Data
@ApiModel
@Table(name = "T_RIWA_RISK_WARING_RULE")
public class RiwaRiskWaringRule extends BaseEntity {

    /**
     * 预警模型ID
     * <p>
     * Table:     T_RIWA_RISK_WARING_RULE
     * Column:    WARNING_MODEL_GUID
     * Nullable:  true
     */
    @ApiModelProperty("预警模型ID")
    @Column(name = "WARNING_MODEL_GUID")
    private String warningModelGuid;

    /**
     * 重点风险ID
     * <p>
     * Table:     T_RIWA_RISK_WARING_RULE
     * Column:    IMPORT_GUID
     * Nullable:  true
     */
    @ApiModelProperty("重点风险ID")
    @Column(name = "IMPORT_GUID")
    private String importGuid;

    /**
     * 风险点ID
     * <p>
     * Table:     T_RIWA_RISK_WARING_RULE
     * Column:    RISK_ID
     * Nullable:  false
     */
    @ApiModelProperty("风险点ID")
    @Column(name = "RISK_ID")
    private String riskId;

    /**
     * 预警状态ID
     * <p>
     * Table:     T_RIWA_RISK_WARING_RULE
     * Column:    WARING_STATUS_GUID
     * Nullable:  true
     */
    @ApiModelProperty("预警状态ID")
    @Column(name = "WARING_STATUS_GUID")
    private String waringStatusGuid;

    /**
     * 预警状态
     * <p>
     * Table:     T_RIWA_RISK_WARING_RULE
     * Column:    WARNING_STATUS
     * Nullable:  false
     */
    @ApiModelProperty("预警状态")
    @Column(name = "WARNING_STATUS")
    private String warningStatus;

    /**
     * 指标分组序号
     * <p>
     * Table:     T_RIWA_RISK_WARING_RULE
     * Column:    TARGET_SEQ
     * Nullable:  false
     */
    @ApiModelProperty("指标分组序号")
    @Column(name = "TARGET_SEQ")
    private String targetSeq;

    /**
     * 预警区间
     * <p>
     * Table:     T_RIWA_RISK_WARING_RULE
     * Column:    WARNING_DESC
     * Nullable:  true
     */
    @ApiModelProperty("预警区间")
    @Column(name = "WARNING_DESC")
    private String warningDesc;

    /**
     * 排序
     * <p>
     * Table:     T_RIWA_RISK_WARING_RULE
     * Column:    ROW_ORDER
     * Nullable:  true
     */
    @ApiModelProperty("排序")
    @Column(name = "ROW_ORDER")
//    private String rowOrder;
    private  Integer rowOrder;
    /**
     * 状态
     * <p>
     * Table:     T_RIWA_RISK_WARING_RULE
     * Column:    STATUS
     * Nullable:  true
     */
    @ApiModelProperty("状态")
    @Column(name = "STATUS")
    private String status;

    /**
     * 状态说明
     * <p>
     * Table:     T_RIWA_RISK_WARING_RULE
     * Column:    STATUS_NAME
     * Nullable:  true
     */
    @ApiModelProperty("状态说明")
    @Column(name = "STATUS_NAME")
    private String statusName;
}